<script setup>
import { provideTableKey } from '../../../hooks/use-provide-key'

const { schema } = inject(provideTableKey)

const { field } = defineProps({
  field: Object,
})

const fieldName = field.field

defineOptions({ name: 'RenderInputNumber' })
</script>

<template>
  <el-input-number
    v-model="schema.data[fieldName]"
    v-bind="field.props"
  />
</template>
